package com.example;

import com.example.bean.Grade;
import com.example.bean.School;
import com.example.bean.Student;

public class Main {
    public static void main(String[] args) {
        // 先创建被依赖
        School school = new School();
        school.setId(1);
        school.setName("三大科院");
        school.setAddress("湖北宜昌西陵区");
        // =================
        Grade grade = new Grade();
        grade.setId(1);
        grade.setNumber("20224128");
        grade.setMajor("计算机科学与技术");
        grade.setSchool(school);
        // =================
        Student student = new Student();
        student.setId(1);
        student.setName("kunkun");
        student.setGrade(grade);
        System.out.println(student);
    }
}
